﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Brc_PaaS.Common.Model.Redis
{  
    /// <summary>
    /// 初始化数据库信息请求模型(用于管理员初始化Redis部分基础数据)
    /// </summary>
    public class RedisInitRequestModel
    {
        /// <summary>
        /// 初始化数据库的IP
        /// </summary>
        [Required(ErrorMessage = "Ip不能为空")]
        public string Ip { get; set; }
        /// <summary>
        /// 初始化数据库的端口
        /// </summary>
        [Required(ErrorMessage = "端口不能为空")]
        public string Port { get; set; }
        /// <summary>
        /// 初始化数据库的密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string PassWord { get; set; }
        /// <summary>
        /// 是否排除db0
        /// </summary>
        public bool IsExcludeZero { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get; set; }
    }    
}
